Automatic Testing through Planning
نویسندگان
چکیده
We describe a strategy to automatically test software built using preand postconditions. The strategy searches for valid routine calls: calls for which the preconditions are satisfied. If such calls fail (because the postcondition or another check is violated), we have found a bug. The testing strategy automatically builds a model of the software under test. The model is an abstract version of the semantics given by the preand postconditions. We use planning and learning to find a sequence of instructions that constructs the arguments to a valid routine call. The strategy is fully automatic and can be used to find bugs without intervention of the user. The generated test cases complement the unit tests that a designer may write by hand. We also illustrate the use of our experimental implementation on a non-trivial example.
منابع مشابه
Optimizing Cost Function in Imperialist Competitive Algorithm for Path Coverage Problem in Software Testing
Search-based optimization methods have been used for software engineering activities such as software testing. In the field of software testing, search-based test data generation refers to application of meta-heuristic optimization methods to generate test data that cover the code space of a program. Automatic test data generation that can cover all the paths of software is known as a major cha...
متن کاملResearch on the Different Protection and Restoration Mechanism of ASON
Different protection and restoration mechanism is the most important feature of automatic switched optical network (ASON). Through testing 1356NT, which is an optical network planning and design tool of Alcatel-Lucent Company, this paper analyzes the restoration time and proposes the application strategy of different circuits. It is significant for the plan and design of ASON. Keywords-automati...
متن کاملAn automatic test case generator for evaluating implementation of access control policies
One of the main requirements for providing software security is the enforcement of access control policies which aim to protect resources of the system against unauthorized accesses. Any error in the implementation of such policies may lead to undesirable outcomes. For testing the implementation of access control policies, it is preferred to use automated methods which are faster and more relia...
متن کاملPath-planning techniques for the simulation of disassembly tasks
Purpose – This paper aims to develop path-planning techniques that support a general selective disassembly planner in a virtual reality environment. Design/methodology/approach – The paper presents an automatic selective disassembly planning and two path-planning techniques that support it. The first one is based on single translations, while the second is based on the generation of a random se...
متن کاملPDVer, a Tool to Verify PDDL Planning Domains
We present a methodology and a tool for the problem of testing and verifying that a PDDL planning domain satisfies a set of requirements, a need that arises for instance in space missions. We first review and analyse coverage conditions for requirement-based testing, and present how test cases can be derived automatically from requirements. Additionally, we show how test cases can be translated...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2006